package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-05-05
 */
@TableName("t_notice")
public class TNotice extends Model<TNotice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 0 成功 1 失败 
     */
    @TableField("msg_status")
    private Integer msgStatus;
    /**
     * 消息内容
     */
    @TableField("msg_str")
    private String msgStr;
    /**
     * 通知时间
     */
    @TableField("create_time")
    private Date createTime;
    @TableField("create_usr")
    private Integer createUsr;
    /**
     * 通知类型 0 短信 1 电话
     */
    @TableField("msg_type")
    private Integer msgType;

    @TableField("order_id")
    private Integer orderId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMsgStatus() {
        return msgStatus;
    }

    public void setMsgStatus(Integer msgStatus) {
        this.msgStatus = msgStatus;
    }

    public String getMsgStr() {
        return msgStr;
    }

    public void setMsgStr(String msgStr) {
        this.msgStr = msgStr;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUsr() {
        return createUsr;
    }

    public void setCreateUsr(Integer createUsr) {
        this.createUsr = createUsr;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TNotice{" +
        "id=" + id +
        ", msgStatus=" + msgStatus +
        ", msgStr=" + msgStr +
        ", createTime=" + createTime +
        ", createUsr=" + createUsr +
        ", msgType=" + msgType +
        "}";
    }
}
